package reversesh

import "flare-admin/db/sqlc/reversesh"

func ReverseShAuditResultDao2DTOs(results []reversesh.OteldemoReverseshRecord) []AuditRecordDTO {
	var auditRecords []AuditRecordDTO
	for i, result := range results {
		auditRecord := AuditRecordDTO{
			ID:          int64(i + 1),
			CybertwinID: int64(result.CybertwinID),
			Syscall:     result.Syscall,
			NodeName:    result.NodeName,
			EventTime:   result.EventTime.Time,
		}
		auditRecords = append(auditRecords, auditRecord)
	}
	return auditRecords
}
